#ifndef TIMER_H
#define TIMER_H

#include <QLineEdit>
#include <qtimer.h>
#include <qstring.h>

class Timer : public QLineEdit
{
    Q_OBJECT
public:
    explicit Timer(QWidget *parent = 0);
    void start();
    void stop();
    void clean();
    int getTime() const;
    void setTime(int tt);
private:
    QTimer t;
    int ttime;
    QString s;
signals:

private slots:
    void addtime();
};

#endif // TIMER_H
